
if (CONFIG_KAL_LINUX_ENABLE)
message("CONFIG_KAL_LINUX_ENABLE = ${CONFIG_KAL_LINUX_ENABLE}")
aux_source_directory(source/kal_linux KAL)
link_libraries(pthread)
link_libraries(rt)
link_libraries(log)

elseif (CONFIG_KAL_FREERTOS_ENABLE)
message("CONFIG_KAL_FREERTOS_ENABLE = ${CONFIG_KAL_FREERTOS_ENABLE}")
aux_source_directory(source/kal_freertos KAL)

elseif (CONFIG_KAL_RT_THREAD_ENABLE)
message("CONFIG_KAL_RT_THREAD_ENABLE = ${CONFIG_KAL_RT_THREAD_ENABLE}")
aux_source_directory(source/kal_rtthread KAL)

elseif (CONFIG_KAL_HARMONYOS_ENABLE)
message("CONFIG_KAL_HARMONYOS_ENABLE = ${CONFIG_KAL_HARMONYOS_ENABLE}")
aux_source_directory(source/kal_harmonyos KAL)

elseif (CONFIG_KAL_CMSISOS_ENABLE)
message("CONFIG_KAL_CMSISOS_ENABLE = ${CONFIG_KAL_CMSISOS_ENABLE}")
aux_source_directory(source/kal_cmsisos KAL)

elseif (CONFIG_KAL_NANO_ENABLE)
message("CONFIG_KAL_NANO_ENABLE = ${CONFIG_KAL_NANO_ENABLE}")
aux_source_directory(source/kal_nano KAL)
endif()

add_library(kal
            STATIC
            ${KAL})
